/**
 * @summary: 工作管理
 */

export default {
    name: 'work',
    path: '/work',
    icon: 'schedule',
    code: 'work',
    // disabled: true, //  开发中，禁用状态
    routes: [
        // =============================================================== 任务管理
        {
            name: 'task',
            path: '/work/task',
            code: 'work:task',
            routes: [
                // =============================================================== 我的任务
                {
                    name: 'myTask',
                    path: '/work/task/mytask',
                    code: 'work:task:mytask',
                    routes: [
                        // 我执行的
                        {
                            name: 'myExecute',
                            path: '/work/task/mytask/execute',
                            component: './Task/MyTask/MyExecute/MyExecute',
                            code: 'work:task:mytask',
                            iconfont: 'iconwozhihangde'
                        },
                        // 我参与的
                        {
                            name: 'myParticipate',
                            path: '/work/task/mytask/participate',
                            component: './Task/MyTask/MyParticipate/MyParticipate',
                            code: 'work:task:mytask',
                            iconfont: 'iconwocanyude'
                        },
                        // 我发起的
                        {
                            name: 'myStart',
                            path: '/work/task/mytask/start',
                            component: './Task/MyTask/MyStart/MyStart',
                            code: 'work:task:mytask',
                            iconfont: 'iconwofaqide'
                        },
                        // 我审核的
                        {
                            name: 'myAudit',
                            path: '/work/task/mytask/audit',
                            component: './Task/MyTask/MyAudit/MyAudit',
                            code: 'work:task:mytask',
                            iconfont: 'iconwoshenhede'
                        },
                        // 我验收的
                        {
                            name: 'myAcceptance',
                            path: '/work/task/mytask/acceptance',
                            component: './Task/MyTask/MyAcceptance/MyAcceptance',
                            code: 'work:task:mytask',
                            iconfont: 'iconwoyanshoude'
                        },
                        // 我估算的
                        {
                            name: 'myAssessment',
                            path: '/work/task/mytask/assessment',
                            component: './Task/MyTask/MyAssessment/MyAssessment',
                            code: 'work:task:mytask',
                            iconfont: 'iconwoshenhede'
                        },
                        // 我评分的
                        {
                            name: 'myScore',
                            path: '/work/task/mytask/score',
                            component: './Task/MyTask/MyScore/MyScore',
                            code: 'work:task:mytask',
                            iconfont: 'iconwodepingfen'
                        }
                    ]
                },
                // 任务详情
                {
                    name: 'taskDetail',
                    path: '/work/task/taskdetail',
                    component: './Task/MyTask/MyTaskDetail/MyExecuteDetail',
                    code: 'work:task:mytask',
                    hideInMenu: true
                },
                // 任务变更记录详情
                {
                    name: 'changeRecDetail',
                    path: '/work/task/changeRecDetail',
                    component: './Task/MyTask/ChangeRecDetail/ChangeRecDetail',
                    code: 'work:task:mytask',
                    hideInMenu: true
                },
                // 附件预览
                {
                    name: 'filePreview',
                    path: '/work/task/filePreview',
                    component: './Task/MyTask/MyTaskDetail/components/FilePreview/FilePreview',
                    code: 'work:task:mytask',
                    hideInMenu: true
                },
                // 发起任务
                {
                    name: 'addTask',
                    path: '/work/task/addTask',
                    component: './Task/MyTask/AddTask/AddTask',
                    code: 'work:task:mytask',
                    hideInMenu: true
                },
                // =============================================================== 我下属的
                {
                    name: 'subordinateTask',
                    path: '/work/task/subordinate',
                    code: 'work:task:subordinate',
                    routes: [
                        // 下属执行
                        {
                            name: 'execute',
                            path: '/work/task/subordinate/execute',
                            component: './Task/SubordinateTask/Execute/Execute',
                            code: 'work:task:subordinate',
                            iconfont: 'iconwozhihangde'
                        }
                    ]
                },
                // 评分管理
                {
                    name: 'score',
                    path: '/work/task/score',
                    code: 'work:task:score',
                    routes: [
                        // 全部任务
                        {
                            name: 'allTask',
                            path: '/work/task/score/allTask',
                            component: './Task/Score/AllTask/AllTask',
                            code: 'work:task:score',
                            iconfont: 'iconquanburenwu'
                        }
                    ]
                },
                // 工作量管理
                {
                    name: 'assessment',
                    path: '/work/task/assessment',
                    code: 'work:task:assessment',
                    routes: [
                        // 全部任务
                        {
                            name: 'allTask',
                            path: '/work/task/assessment/allTask',
                            component: './Task/Assessment/AllTask',
                            code: 'work:task:assessment',
                            iconfont: 'iconquanburenwu'
                        }
                    ]
                },
                // 基础设置
                {
                    name: 'setting',
                    path: '/work/task/setting',
                    code: 'work:task:setting',
                    routes: [
                        // 人工评分规则
                        {
                            name: 'grade',
                            path: '/work/task/setting/grade',
                            component: './Task/BasicSetting/ManualGradeRule/ManualGradeRule',
                            code: 'work:task:setting',
                            iconfont: 'iconwozhihangde'
                        },
                        // 业务规则配置
                        {
                            name: 'business',
                            path: '/work/task/setting/business',
                            component: './Task/BasicSetting/BusinessRule/BusinessRule',
                            code: 'work:task:setting',
                            iconfont: 'iconwozhihangde'
                        }
                    ]
                }
            ]
        }
    ]
};
